package hankz.spring.beans.factory.config;

import hankz.spring.beans.BeansException;

/**
 * @description: TODO
 * @author: zzc
 * @modified By: zzc
 * @date: Created in 2021/11/21 16:57
 * @version:v1.0
 *
 * 暴露给用户
 */
public interface BeanPostProcessor {

    /**
     * 在Bean对着执行初始化方法之前，执行此方法
     *
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException;

    Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException;


}
